package com.ruoyi.fs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsWorkOrderPushMapper;
import com.ruoyi.fs.domain.FsWorkOrderPush;
import com.ruoyi.fs.service.IFsWorkOrderPushService;

/**
 * 重提工单Service业务层处理
 * 
 * @author hero
 * @date 2024-10-28
 */
@Service
public class FsWorkOrderPushServiceImpl implements IFsWorkOrderPushService 
{
    @Autowired
    private FsWorkOrderPushMapper fsWorkOrderPushMapper;

    /**
     * 查询重提工单
     * 
     * @param id 重提工单主键
     * @return 重提工单
     */
    @Override
    public FsWorkOrderPush selectFsWorkOrderPushById(Long id)
    {
        return fsWorkOrderPushMapper.selectFsWorkOrderPushById(id);
    }

    /**
     * 查询重提工单列表
     * 
     * @param fsWorkOrderPush 重提工单
     * @return 重提工单
     */
    @Override
    public List<FsWorkOrderPush> selectFsWorkOrderPushList(FsWorkOrderPush fsWorkOrderPush)
    {
        return fsWorkOrderPushMapper.selectFsWorkOrderPushList(fsWorkOrderPush);
    }

    /**
     * 新增重提工单
     * 
     * @param fsWorkOrderPush 重提工单
     * @return 结果
     */
    @Override
    public int insertFsWorkOrderPush(FsWorkOrderPush fsWorkOrderPush)
    {
        fsWorkOrderPush.setCreateTime(DateUtils.getNowDate());
        return fsWorkOrderPushMapper.insertFsWorkOrderPush(fsWorkOrderPush);
    }

    /**
     * 修改重提工单
     * 
     * @param fsWorkOrderPush 重提工单
     * @return 结果
     */
    @Override
    public int updateFsWorkOrderPush(FsWorkOrderPush fsWorkOrderPush)
    {
        fsWorkOrderPush.setUpdateTime(DateUtils.getNowDate());
        return fsWorkOrderPushMapper.updateFsWorkOrderPush(fsWorkOrderPush);
    }

    /**
     * 批量删除重提工单
     * 
     * @param ids 需要删除的重提工单主键
     * @return 结果
     */
    @Override
    public int deleteFsWorkOrderPushByIds(Long[] ids)
    {
        return fsWorkOrderPushMapper.deleteFsWorkOrderPushByIds(ids);
    }

    /**
     * 删除重提工单信息
     * 
     * @param id 重提工单主键
     * @return 结果
     */
    @Override
    public int deleteFsWorkOrderPushById(Long id)
    {
        return fsWorkOrderPushMapper.deleteFsWorkOrderPushById(id);
    }
}
